
import { getMessage } from "@/api/message";

const state = {
  message:[]
};

const mutations = {
  //消息
  getMessage(state,val){
    state.message = val;
  }
};

const actions = {
  //xiaoxi
  async getMessage({ commit },val){
    let result = await getMessage(val);
    console.log(result.dataList,'消息')
    commit("getMessage",result.dataList)
  }
};
const modules = {};
export default {
  namespaced: true,
  state,
  mutations,
  actions,
  modules
};
